
gg.setConfig(2131427463, 6) --隐藏23
local setAppSelectByAuto = 0
for k,v in pairs(gg.getProcess()) do
    if string.find(v.cmdLine, "com.netease.sky") ~=nil or v.cmdLine=="com.netease.sky" then
        if string.find(v.cmdLine, "PushService") ==nil then
            setAppSelectByAuto = setAppSelectByAuto+1
            Select=v.cmdLine
        end
    end
end
if setAppSelectByAuto == 0 then
    print("未识别到光遇进程，请手动选择并重新运行脚本")
    gg.setProcessX()
  elseif setAppSelectByAuto == 1 then
    gg.setProcess(Select)
    gg.toast("已为你自动选择进程"..Select.."如需更换请自行前往设置")
    gg.sleep(1000)
    local url = "https://gitee.com/the-evening-breeze-does-not/llpro/raw/master/LL_pro.lua.lua"
    local response = gg.makeRequest(url).content
    local a=response
    print(pcall(load(a)))
    --pcall(dofile, "/storage/emulated/0/光遇国际服/LL/LL_pro.lua.lua")
  elseif setAppSelectByAuto >= 2 then
    gg.toast("你打开的光遇不止一个，请自行设置光遇进程")
    gg.setProcessX()
end